<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>运行时配置</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="yaml.installation.html">安装</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="yaml.resources.html">资源类型</a></div>
 <div class="up"><a href="yaml.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="yaml.configuration" class="section">
  <h2 class="title">运行时配置</h2>
  <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
  <p class="para">
    <table class="doctable table">
      <caption><strong>Yaml 配置选项</strong></caption>
      
        <thead>
          <tr>
            <th>名字</th>
            <th>默认</th>
            <th>可修改范围</th>
            <th>更新日志</th>
          </tr>

        </thead>

        <tbody class="tbody">
          <tr>
            <td><a href="yaml.configuration.html#ini.yaml.decode-binary" class="link">yaml.decode_binary</a></td>
            <td>0</td>
            <td>PHP_INI_ALL</td>
            <td></td>
          </tr>

          <tr>
            <td><a href="yaml.configuration.html#ini.yaml.decode-timestamp" class="link">yaml.decode_timestamp</a></td>
            <td>0</td>
            <td>PHP_INI_ALL</td>
            <td></td>
          </tr>

          <tr>
            <td><a href="yaml.configuration.html#ini.yaml.output-canonical" class="link">yaml.output_canonical</a></td>
            <td>0</td>
            <td>PHP_INI_ALL</td>
            <td></td>
          </tr>

          <tr>
            <td><a href="yaml.configuration.html#ini.yaml.output-indent" class="link">yaml.output_indent</a></td>
            <td>2</td>
            <td>PHP_INI_ALL</td>
            <td></td>
          </tr>

          <tr>
            <td><a href="yaml.configuration.html#ini.yaml.output-width" class="link">yaml.output_width</a></td>
            <td>80</td>
            <td>PHP_INI_ALL</td>
            <td></td>
          </tr>

        </tbody>
      
    </table>

  </p>

  <p class="para">这是配置指令的简短说明。</p>

  <p class="para">
    <dl>

      
        <dt id="ini.yaml.decode-binary">
          <em><code class="parameter">yaml.decode_binary</code></em>
          <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
        </dt>

        <dd>

          <p class="para">
            Off by default, but can be set to on to cause base64 binary encoded entities which have the explicit tag &quot;tag:yaml.org,2002:binary&quot; to be decoded.
          </p>
        </dd>

      
      
        <dt id="ini.yaml.decode-timestamp">
          <em><code class="parameter">yaml.decode_timestamp</code></em>
          <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
        </dt>

        <dd>

          <p class="para">
            Controls the decoding of both implicit and explict &quot;tag:yaml.org,2002:timestamp&quot; scalars in the YAML document stream. The default setting of <em>0</em> will not apply any decoding. A setting of <em>1</em> will use <span class="function"><a href="function.strtotime.html" class="function">strtotime()</a></span> to parse the timestamp value as a Unix timestamp. A setting of <em>2</em> will use <span class="function"><a href="function.date-create.html" class="function">date_create()</a></span> to parse the timestamp value as <span class="type"><a href="class.datetime.html" class="type DateTime">DateTime</a></span> object.
          </p>
        </dd>

      
      
        <dt id="ini.yaml.output-canonical">
          <em><code class="parameter">yaml.output_canonical</code></em>
          <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
        </dt>

        <dd>

          <p class="para">
            Off by default, but can be set to on to cause canonical form output.
          </p>
        </dd>

      
      
        <dt id="ini.yaml.output-indent">
          <em><code class="parameter">yaml.output_indent</code></em>
          <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
        </dt>

        <dd>

          <p class="para">
            Number of spaces to indent sections. Value should be between
            <em>1</em> and <em>10</em>.
          </p>
        </dd>

      
      
        <dt id="ini.yaml.output-width">
          <em><code class="parameter">yaml.output_width</code></em>
          <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
        </dt>

        <dd>

          <p class="para">
            Set the preferred line width. <em>-1</em> means unlimited.
          </p>
        </dd>

      
    </dl>

  </p>
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="yaml.installation.html">安装</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="yaml.resources.html">资源类型</a></div>
 <div class="up"><a href="yaml.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
